Greetings,
Just finishing up a lathe with live tooling. Working very well, but wondering what to do in the event of the main spindle or the live tooling spindle stalling. Each servo controlling these has a fault output, just trying to figure out the best way to use these outputs. I am thinking of using the following code in the INIT program:
for (;;) // loop forever
{
int result;
WaitNextTimeSlice();
if (ReadBit(1025) || ReadBit(1026))
DisableAxis(0); // Disable all axes
DisableAxis(1);
DisableAxis(2);
printf("Spindle Torque Overload\n"); // send message to console
}
I believe there is an error log. Is there a way to send the torque overload to that log as well, or is the Console the only option?
I would certainly appreciate suggestions if there are better ways.
Thanks,
Scott